<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

  <style>
    h1 {
      color: red;
      color: #00ff00;
      color: #00f;
      color: rgb(255, 0, 0);
      color: rgba(255,0,0,1);
    }
    #d1 {
        width: 200px;
        height: 200px;
        background-color: red;
        /*设置背景图片*/
        background-image: url("../4.png");
        /*设置背景图片的尺寸：宽 高*/
        background-size: 30px 30px;
        /*设置禁止重复*/
        background-repeat: no-repeat;
        /*设置背景图片的位置*/
        background-position: 50px 100px;
        /*设置背景图片的位置：偏移百分比*/
        background-position: 50% 100%;
    }

    #d2 {
        width: 611px;
        height: 376px;
        background-color: #e8e8e8;
        background-image: url("http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img1.png");
        background-size: 318px 319px;
        background-repeat: no-repeat;
        background-position: 90% 40%;
    }
    #d3 {
        width: 375px;
        height: 376px;
        background-color: #e8e8e8;
        background-image: url("http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img2.png");
        background-size: 292px 232px;
        background-repeat: no-repeat;
        background-position: 88% 88%;
    }


  </style>
</head>
<body>
<h1>颜色测试</h1>
<div id="d1">背景测试</div>
<div id="d2"></div>
<div id="d3"></div>
</body>
</html>